<%--

<!------------------------------------------------------------------------------
 - Copyright 2006 CORE Solutions Limited
 - All rights reserved.
 - PROPRIETARY AND CONFIDENTIAL INFORMATION.
 - Use is subject to license terms.
 -
 - FUNCTION ID      :   CATALOG_OPTION
 - AUTHOR           :   Saint Peng
 - DATE CREATE      :   2006/01/05
 - DESCRIPTION      :   a HEADER TAB JSP file for the function, CODE
 -                  :
 -                  :
 -                  :
 -
 - MODIFICATION HISTORY:
 - DATE         AUTHOR          VERSION NO.         COMMENT
 - -----------  --------------  ------------------  -------------------
 - 2006/01/05   Saint Peng      1.0                 source is generated.
 -
 -
 -
------------------------------------------------------------------------------->

--%>
<%@ include file="/jsp/com/erp/app/common/jsp/directives_include.jsp"%>

<%@ page import="com.erp.app.setup.catalogOption.vo.CatalogOptionHdrVo"%>
<%@ page import="com.erp.app.setup.catalogOption.web.CatalogOptionMaintenanceAction"%>
<%@ page import="com.erp.app.setup.catalogOption.web.CatalogOptionMaintenanceForm"%>

<%@ include file="/jsp/com/erp/app/common/jsp/html_include.jsp"%>

<jsp:useBean id="catalogOptionMaintenanceForm" scope="session" type="com.erp.app.setup.catalogOption.web.CatalogOptionMaintenanceForm" />

<!-- MUST use the following example to mark fields as mandatory field inputs-->
<!--
<td class="grid_header" nowrap><span class="mandatory_label">
<bean:message key="label.general.mandatory.field"/>
...</span></td>
-->
<%
formReadOnly = false;
TableSchema ts = catalogOptionMaintenanceForm.getTs();
%>

<table class="table_short_header">

	<tr>
		<%
		webLabel = ts.getDisplayWebLabelWithColonByObjectId("LBL_HDR_REF_MASTER_CODE");
		colSize = String.valueOf(ts.getColSizeByObjectId("LBL_HDR_REF_MASTER_CODE"));
		displaySize = String.valueOf(ts.getDisplaySizeByObjectId("LBL_HDR_REF_MASTER_CODE"));
		%>
		<td class="col_label">
			<html:text useExtensions="true" uiType="label" name="catalogOptionMaintenanceForm" property="refMasterCode"/>
		</td>
		<td class="col_value" nowrap>
			<logic:equal name="catalogOptionMaintenanceForm" property="pageMode" value="<%=catalogOptionMaintenanceForm.PAGE_MODE_CREATE%>">
				<html:text property="refMasterCode" styleClass="textbox1" readonly="<%=formReadOnly%>" size="<%=colSize%>" maxlength="<%=displaySize%>" value="<%=CommonUtil.nullToString(catalogOptionMaintenanceForm.getRefMasterCode())%>"/>
			</logic:equal>
			<logic:notEqual name="catalogOptionMaintenanceForm" property="pageMode" value="<%=catalogOptionMaintenanceForm.PAGE_MODE_CREATE%>">
				<bean:write name="catalogOptionMaintenanceForm" property="refMasterCode" filter="true"/>
			</logic:notEqual>
		</td>
	</tr>
	<tr>
		<%
		webLabel = String.valueOf(ts.getDisplayWebLabelWithColonByObjectId("LBL_HDR_REF_DESC"));
		colSize = String.valueOf(ts.getColSizeByObjectId("LBL_HDR_REF_DESC"));
		displaySize = String.valueOf(ts.getDisplaySizeByObjectId("LBL_HDR_REF_DESC"));
		%>
		<td class="col_label">
			<html:text useExtensions="true" uiType="label" name="catalogOptionMaintenanceForm" property="refDesc"/>
		</td>
		<td class="col_value" nowrap>
			<%
			colSize = String.valueOf(ts.getColSizeByObjectId("LBL_HDR_REF_DESC"));
			displaySize = String.valueOf(ts.getDisplaySizeByObjectId("LBL_HDR_REF_DESC"));
			%>
			<html:text property="refDesc" styleClass="textbox1" readonly="<%=formReadOnly%>" size="<%=colSize%>" 
				maxlength="<%=displaySize%>" value="<%=CommonUtil.nullToString(catalogOptionMaintenanceForm.getRefDesc())%>"/>
		</td>
	</tr>
	<tr>		
		<td class="col_label">
			<html:text useExtensions="true" uiType="label" name="catalogOptionMaintenanceForm" property="showDesc"/>
		</td>
		<td class="col_value" nowrap>						
			<html:text useExtensions="true" showCode="false" uiType="combobox" 
				name="catalogOptionMaintenanceForm" property="showDesc" />
		</td>
	</tr>
	<tr>		
		<td class="col_label">
			<html:text useExtensions="true" uiType="label" name="catalogOptionMaintenanceForm" property="status"/>
		</td>
		<td class="col_value" nowrap>					
			<html:text useExtensions="true" showCode="false" uiType="combobox" 
				name="catalogOptionMaintenanceForm" property="status" />
		</td>
	</tr>
	
</table>

